
const getPathParam = function(name: string) {
    const reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
    const r = window.location.href.substring(1).match(reg);
    if (r != null) {
        return decodeURI(r[2]);
    }
    return null;
}


export { getPathParam }